<p class="topText">
<?php
					include("include/acess.inc.php");
					
					$sql1 = "SELECT * FROM daytext;";
					$result1 = mysql_query($sql1);
					$rows = mysql_num_rows($result1);
					$article = rand(1,$rows);
					$sql2 = "SELECT * FROM daytext WHERE id = {$article};";
					$result1 = mysql_query($sql2);

					//Artikel laden und Anzeigen
					while($row =  @mysql_fetch_assoc($result1)) {
						$output.= "<span class=\"smallTxt\">{$row["Headline"]}{$row["id"]}:</span>\n".
							 "".htmlentities($row["Eintrag"])."";
					}					
					
					mysql_close();
					
					echo $output;

?>
</p>
